﻿using AutoMapper;
using Nb.FactoryAssistant.DAL.Abstracts.Entities;
using Nb.FactoryAssistant.Service.Abstracts.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nb.FactoryAssistant.Service.WMS.Warehouse.MapperConfig
{
    public class WmsWarehouseTypeProfile:Profile
    {
        public WmsWarehouseTypeProfile()
        {
            CreateMap<WmsWarehouseType, WmsWarehouseTypeListOutput>();

            CreateMap<WmsWarehouseTypeCreateUpdateInput, WmsWarehouseType>()
            .IgnorColumn()
            .ForMember(e => e.TenantId, opt => opt.Ignore());
        }
    }
}
